package vamp_serviceweb

class Vehicle {

    String description;
    String model;
    int year;
    Constructor constructor;
    //Detail du status
    int status;
    String imguri

    static constraints = {
        description()
        model()
        year()
    }


    static mapping = {
        id column: 'idvehicle'
        status column:'idstatus'
        constructor column:'idconstructor'
    }

    public static final int STATUS_AVAILABLE = 0
    public static final int STATUS_IN_USE = 1
    public static final int STATUS_OUT_OF_ORDER = 2
    public static final int STATUS_IN_PROCESS = 3
    public static final int STATUS_REFUSED = 4
    public static final int STATUS_ACCEPTED = 5
}
